package com.zzy.controller;

import com.zzy.domain.dto.SupplierPagedto;
import com.zzy.domain.Result;
import com.zzy.service.SupplierService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/supplier")
public class SupplierController {
    private final SupplierService service;

    @GetMapping("/page")
    public Result page(SupplierPagedto supplierPagedto){
        /**
         * 分页查询,供应商
         */

        return Result.success(service.getPage(supplierPagedto));
    }

}
